
<script src="/includes/jquery.tooltip.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
    $(".tippy").tooltip({track: true, delay: 0, showBody: " ~ " });
});
</script>

<div class="hbe_booking_pages">        
    
    <ul class="booking_trail">
        <li class="booking_trail_history"><a href="/hotels/hotel_results.php?sid=<?=session_id()?>"> Results</a></li>
        <li class="booking_trail_complete"><a href="/hotels/booking_details.php"> Your Details</a></li>
        <li class="booking_trail_current">Secure Payment</li>
        <li>Booked!</li>
        
    </ul>
    

<h2>Payment Details</h2>

    <div id="errorList" class='message message_neg'>
        <p>There was a problem with the form</p>
    </div>    

<?php
if($GLOBALS['note']){
	echo display_message($GLOBALS['note']);
}
$values_form = $_SESSION['booking']['payment'];
$hotel_id = $_SESSION['booking']['hotel_id'];

$billing_counties = array(
    'Antrim',
    'Armagh',
    'Carlow',
    'Cavan',
    'Clare',
    'Cork',
    'Derry',
    'Donegal',
    'Down',
    'Dublin',
    'Fermanagh',
    'Galway',
    'Kerry',
    'Kildare',
    'Kilkenny',
    'Laois',
    'Leitrim',
    'Limerick',
    'Longford',
    'Louth',
    'Mayo',
    'Meath',
    'Monaghan',
    'Offaly',
    'Roscommon',
    'Sligo',
    'Tipperary',
    'Tyrone',
    'Waterford',
    'Westmeath',
    'Wexford',
    'Wicklow',
);
$billing_country_codes = array(
    'IE' => 'Republic of Ireland',
    'NI' => 'Northen Ireland',
);
?>








<article>
    
    

    
    
<form action="booking_payment.php" method="post" id="booking_payment"/>



<input type="hidden" name="action" value="validate" />
<input type="hidden" name="booking_hotel_id" value="<?=$hotel_id?>">



<div class="hbe_cards_col"> 


<p>


    
 <div class="row_col_std">
        <label>Name of Card Holder</label>
        <input type="text" name="cc_holder_name" value="<?= $values_form['cc_holder_name'] ?>" />
    </div>

   
</p>
     
    
<p>

    <div class="row_col_std">
        <label>Card Type</label>

        <select name="cc_type" id="cc_type">
            <option value="">Please Select</option>
            <option value=""></option>            
            <option value="visa">Visa Credit (1.95%)</option>
            <option value="mc">Mastercard Credit (1.95%)</option>
            <option value="lase">Laser (0%)</option>
            <option value="vd">Visa Debit (0%)</option>
            <option value="md">Mastercard Debit (0%)</option>            

        </select>
    </div>
   

</p>   
    
    
<p>

    <div class="row_col_std">
        <label>Card Number</label>
        <input type="text" name="cc_number" value="<?= $values_form['cc_number'] ?>" />
    </div>

</p>
    
     

    
    
<p>

    <div class="row_col_std">
        
     
        
        <label>Expiry Date</label>
        
        
        <select name="card_expiry_month" class="hbe_expiry_month">
            <option value="">Month</option>
            <option value=""></option>
            <?
            for($i=1;$i<=12;$i++){
            $j=$i;
            if($j<10)$j = "0".$j;
            ?>
            <option value="<?= $j ?>" <?= selected($j,$values_form['card_expiry_month']) ?>><?= $j ?></option>
            <? } ?>
        </select>
        
        <select name="card_expiry_year" class="hbe_expiry_year">
            <option value="">Year</option>
            <option value=""></option>
            <?
            for($i=date('y');$i<date('y')+9;$i++){
            $j= $i;
            $label = '20'. $i;
            //if($j<10)$j = "0".$j;
            ?>
            <option value="<?= $j ?>" <?= selected($j,$values_form['card_expiry_year']) ?>><?= $label ?></option>
            <? } ?>
        </select>
        
    </div>

</p> 
    
<p>

    <div class="row_col_std">
        <label>Security Code</label>
        <input type="text" name="cc_security_code" value="<?= $values_form['cc_security_code'] ?>" class="hbe_csv" maxlength="3" />
        <div class="hbe_csv_info tippy" title="Security Code ~ Please enter the last 3 digits from the number on the back of your card."><img src="/images/icon_csv_info.png" alt="Info"  /></div>
    </div>


</p>  




<!-- Added to put some information here-->      
<p>Your address must be the address associated with the above card for payment</p>
<p>

    <div class="row_col_std">
        <label>Address</label>
        <input type="text" name="cc_address1" value="<?= $values_form['cc_address1'] ?>" class="input_address_1" />
       <input type="text" name="cc_address2" value="<?= $values_form['cc_address2'] ?>" />
    </div>

</p> 
        
<p>

    <div class="row_col_std">
        <label>Town</label>
        <input type="text" name="cc_city" value="<?= $values_form['cc_city'] ?>"/>
    </div>

</p>          
    



<p>

    <div class="row_col_std">
        <label>County</label>

        <select name="billing_county">
            <option value="">Please Select</option>
            <option value=""></option>
            <?php foreach ($billing_counties as $county): ?>
            <option value="<?=$county?>" <?=$county==$values_form['billing_county']?'selected="selected"':''?>><?=$county?></option>
            <?php endforeach; ?>
        </select>
    </div>



</p>        

</div>





    
    <div class="hbe_cards_col_anc">
        
        
        
        <div class="sec_container_hbe">
            
            <p>You can count on us</p>
            
            <ul>
                <li>We use secure transmission and encrypted storage</li>
                <li>We protect your personal information</li>
            </ul>
            
        </div>
        
        <div class="seal_container_hbe"><img src="/images/icon_credit_cards.png" alt="Accepted Cards" /></div>
        
        
        <div class="seal_container_hbe">
            <span id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=wlMkbEUkdgIL5ios1K9dNCcE7UcFGqWo04GX6vPx6Vi5N9D762J"></script></span>
        </div>
        
        
    </div>
    
    
    
    
<br class="clearing" />

 <br class="clearing" />   
    
    
    <p class="hbe_form_term_signup"><input type="checkbox" name="subscribe" class="hbe_form_checkbox_inline" /> Check this box to confirm all the information entered is correct and that you have read and understand our <a href="/hotels/popup_terms_booking.html" class="frame" >Hotel Booking Terms and Conditions</a></p>
    
    <span class="hbe_button_cont"><a class="butt_oran submit">Complete Booking</a></span>
    
    

</form>
    


</article>


<!-- Start booking details -->
<? include SITE_ROOT_PATH."/_lib/html/booking_holiday_details.php"; ?>


</div>

